package com.quwan.common.service;

import com.quwan.common.result.OssResultDTO;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

public interface FileUploadService {
    /**
     * 上传文件
     * @param request
     * @param type 文件类型
     * @return
     * @throws IOException
     */
    List<OssResultDTO> uploadFileOss(HttpServletRequest request, String type) throws IOException;

    /**
     * 删除文件
     * @param filePath
     * @return
     */
    boolean removeFileOss(List<String> filePath);
}
